//
//  HandleNetLogin.h
//  FinancialProduct
//
//  Created by Stella on 2017/8/28.
//  Copyright © 2017年 maq. All rights reserved.
//
#import "AFNetworking.h"
#import <Foundation/Foundation.h>

@interface HandleNetLogin : NSObject

#pragma mark -获取验证码
+ (void)getCodeForPhone:(NSString *)phone Success:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;

#pragma mark -登录检测
+ (void)CheckLoginForPhone:(NSString *)phone Password:(NSString *)password isShow:(BOOL)show Success:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;

#pragma mark -客户基本信息检查（注册1/3）
+ (void)CheckRegisterWithName:(NSString *)name IDType:(NSString *)midType IDNo:(NSString *)midNo Success:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;

#pragma mark -客户获取手机验证码（注册2/3）
+ (void)RegisterUsePhone:(NSString *)phone andName:(NSString *)name Success:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;


#pragma mark -客户设置密码（注册3/3）
+ (void)RegisterSetPassWithName:(NSString *)name Phone:(NSString *)phone PassWord:(NSString *)pass IDType:(NSString *)midType IDNo:(NSString *)midNo Success:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;

#pragma mark -客户修改密码
+ (void)ChangePassWithPhone:(NSString *)phone PassWord:(NSString *)pass NewPassWord:(NSString *)pass2 Success:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;

#pragma mark -重置密码(1/3)
+ (void)retrieveUserName:(NSString *)username AccountPhone:(NSString *)phone Success:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;

#pragma mark -重置密码(2/3)----获取验证码
+ (void)retrieveCodeWithUserName:(NSString *)username AccountPhone:(NSString *)phone Success:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;

#pragma mark -重置密码(3/3)----设置密码
+ (void)retrieveReSetPassWithUserName:(NSString *)username AccountPhone:(NSString *)phone PassWord:(NSString *)password Success:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;

#pragma mark -获取公司名字
+ (void)getCompanyNameSuccess:(void(^)(NSDictionary *data))success Failure:(void(^)(NSString *errorInfo))failure;

@end
